const express = require( 'express' );
const app = express();
app.listen( 8080 );

// app.get( '/:id(\\d+)?', ( req, res ) => { 
//     let params = req.params;
//     res.send( 'web端' + ( params.id || 0) );
// } );

app.get( '/web/:id/aa/:aid', ( req, res ) => { 
    let params = req.params;
    res.send( '你好' + ( params.id || 0 ) );
})